home *** CD-ROM | disk | FTP | other *** search
- Path: strauss.udel.edu!not-for-mail
- From: jcorig@strauss.udel.edu (John Pat Corigliano)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Fixture List Algorithms?!
- Date: 27 Mar 1996 02:49:44 -0500
- Organization: University of Delaware
- Message-ID: <4jaruo$10l@strauss.udel.edu>
- References: <wegge.3y7u@hoa.ping.dk> <64_5625@tna.nullnet.fi>
- NNTP-Posting-Host: strauss.udel.edu
-
- A simple sollution would be to create a generic schedule and then, at
- run-time, fill in the generic schedule with real teams' names. This
- assignment would be random, so that you can create many different
- schedules from the generic one.
-
- For example, suppose the generic schedule is:
- Week 1 - a vs b, c vs d
- Week 2 - a vs c, b vs d
- Week 3 - a vs d, b vs c
-
- And if the teams are Team1, Team2, Team3, Team4, then for each new season,
- randomly assign a letter to a team:
-
- Season 1 - a = Team1, b = Team3, c = Team2, d = Team4
- Season 2 - a = Team3, b = Team4, c = Team2, d = Team1
-
- Of course, it is assumed that the number of teams is fixed. Also, there is
- no guarantee that the same season will be created more than once (well, due
- to the finite number of teams, this is inevitable).
-
- It may not be the most elegant approach, but it should work :P
-
- Later,
- --
- John Corigliano jcorig@strauss.udel.edu
- Computer and Information Science University of Delaware
- MoppSoft - http://www.del.net/users/mopp
- "Never drive a car when you're dead." - Tom Waits
-